package uk.ac.ebi.bioinvindex.model.impl.term;

import uk.ac.ebi.bioinvindex.model.impl.processing.AssayImpl;

import javax.persistence.Entity;
import javax.persistence.DiscriminatorValue;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;

/**
 * User: Nataliya Sklyar (nsklyar@ebi.ac.uk)
 * Date: Jan 4, 2008
 */

@Entity
@DiscriminatorValue( "AssayParameterValue" )

public class AssayParameterValue extends PropertyValueImpl<AssayParameter>{
		private AssayImpl assay;

	protected AssayParameterValue() {
	}

	public AssayParameterValue(AssayParameter type) {
		super(type);
	}


	@ManyToOne( targetEntity = uk.ac.ebi.bioinvindex.model.impl.processing.AssayImpl.class)
	@JoinColumn(name = "ASSAY_ID", nullable = true )
	public AssayImpl getAssay() {
		return assay;
	}

	public void setAssay(AssayImpl assay) {
		this.assay = assay;
	}
}
